import request from "@/util/request";

/**
 * @description 获取热门企业列表
 * @returns {Promise}
 */
export function getHotEnterprise(data) {
	return request({
		url: '/getEnterpriseList',
		method: 'GET',
		data
	})
}

/**
 * @description 获取职位列表
 * @returns {Promise}
 */
export function getPublishApi(data) {
	return request({
		url: '/getPublish',
		method: 'GET',
		data
	})
}

/**
 * @description 获取匹配职位列表 扫码用
 * @returns {Promise}
 */
export function getMatchingPost(data) {
	return request({
		url: '/getPublishRecommend',
		method: 'GET',
		data
	})
}
/**
 * @description 获取人力资源列表
 * @returns {Promise}
 */
export function getCustomerListApi(data) {
	return request({
		url: '/getCustomerList',
		method: 'GET',
		data
	})
}

/**
 * @description 全职/兼职
 * @returns {Promise}
 */
export function getPublishRecruiter(data) {
	return request({
		url: '/cus/getCustomerList',
		method: 'get',
		data
	}, true)
}
/**
 * @description 根据ID查询岗位
 * @returns {Promise}
 */

export function findAllJobById(data) {
	return request({
		url: '/findAllJobById',
		method: 'get',
		data
	}, true)
}
/**
 * @description 查询行业
 * @returns {Promise}
 */

export function findJobName(data) {
	return request({
		url: '/findJobName',
		method: 'post',
		data
	}, true)
}
/**
 * @description 收藏关注谁看过我
 * @returns {Promise}
 */

export function insertLookMe(data) {
	return request({
		url: '/insertLookMe',
		method: 'post',
		data
	}, true)
}
/**
 * @description 分享
 * @returns {Promise}
 */
export function doJobPublishShareApi(data) {
	return request({
		url: '/doJobPublishShare',
		method: 'get',
		data
	}, true)
}
/**
 * @description 企业参加招聘会岗位
 * @returns {Promise}
 */

export function getMyPublishByFairApi(data) {
	return request({
		url: '/getMyPublishByFair',
		method: 'get',
		data
	}, true)
}
/**
 * @description 企业参加招聘会
 * @returns {Promise}
 */

export function insertFairCompanyApi(data) {
	return request({
		url: '/insertFairCompany',
		method: 'post',
		data
	}, true)
}
/**
 * @description 投递简历
 * @returns {Promise}
 */

export function insertWorkApplyApi(data) {
	return request({
		url: '/insertWorkApply',
		method: 'post',
		data
	}, true)
}
/**
 * @description 猜你喜欢
 * @returns {Promise}
 */

export function GuessYouLoveApi(data) {
	return request({
		url: '/getPublishByGuessYouLove',
		method: 'post',
		data
	}, true)
}
/**
 * @description 次数记录
 * @returns {Promise}
 */
export function doOperationRecordsApi(data) {
	return request({
		url: '/doOperationRecords',
		method: 'get',
		data
	}, true)
}